
package com.util;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.action.Action;
import com.action.LoginAction;
import com.action.RegisterAction;

/**
 * 
 * 项目名称：MVC  类名称：ActionMapper 创建人：summer 创建时间：2014-12-17 上午09:07:04
 * 修改人：summer 修改时间：2014-12-17 上午09:07:04 修改备注：
 * 
 * @version
 */
public class ActionMapper {

    public static Action findAction(HttpServletRequest request) {
        Action e = null;
        Map<String, Action> map = new HashMap<String, Action>();
        map.put("com.vo.LoginForm", new LoginAction());
        map.put("com.vo.RegisterForm", new RegisterAction());
        String sign = request.getParameter("sign");
        if (map.containsKey(sign)) {
            e = map.get(sign);
        }
        return e;

    }
}
